package com.czp.framework.exception;

import org.apache.log4j.Logger;

/**
 * 【环 境】：J2SE 1.7
 * @author   柴志鹏	CHAIZP@GMAIL.COM
 * @version  version 1.0
 * @since    2014-6-26
 */
public class IException extends Exception {
	private static final long serialVersionUID = -5924817738841112112L;
	private Logger logger = Logger.getLogger(this.getClass());
	
	public IException() {
        super();
    }
    
    public IException(String message) {
        super(message);
        this.logger.error("IException: " + message);
    }
    
    public IException(String message, Throwable cause) {
        super(message, cause);
        this.logger.error("IException: " + message, cause);
    }
    
    public IException(Throwable cause) {
        super(cause);
        this.logger.error("IException: " + cause);
    }
}
